//
//  YyxSegementController.h
//  didacar
//
//  Created by 度周末网络-王腾 on 15/12/3.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void (^SegementControllerChangeBlock)(NSInteger changeIndex);


@interface YyxSegementController : UIView

@property (nonatomic , copy) SegementControllerChangeBlock segementControllerChangeBlock;

@property (nonatomic , strong) NSArray *viewControllers;

@property (nonatomic , assign) NSInteger currentIndex;

-(instancetype)initWithFrame:(CGRect)frame viewControllers:(NSArray *)viewControllers changeBlock:(SegementControllerChangeBlock)changeBlock;

-(void)selectIndex:(NSInteger)index;

@end
